@import "~antd/dist/antd.css";

html,
body,
#root {
  height: 100%;
  width: 100%;
}

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen",
    "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue",
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: #ffffff;
}

p {
  margin: 0;
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
  }
}
.inline {
  display: inline;
}
.block {
  display: block;
}
.inline-block {
  display: inline-block;
}
.none {
  display: none;
}

.pointer {
  cursor: pointer;
}
.content {
  width: 100%;
  height: 100%;
  position: relative;
  min-width: 1230px;
}

.bgImg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.bold {
  font-weight: bold;
}
.height {
  height: 100%;
}
.all-container {
  width: 100%;
  height: 100%;
  position: relative;
}

.relative {
  position: relative;
}
.absolute {
  position: absolute;
}
.fixed {
  position: fixed;
}
.flex {
  display: flex;
}
.flex-sub {
  flex: 1;
}
.flex-direction {
  flex-direction: column;
}
.flex-column-reverse {
  flex-direction: column-reverse;
}
.flex-wrap {
  flex-wrap: wrap;
}
.align-start {
  align-items: flex-start;
}

.align-end {
  align-items: flex-end;
}

.align-center {
  align-items: center;
}
.justify-start {
  justify-content: flex-start;
}

.justify-end {
  justify-content: flex-end;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.justify-around {
  justify-content: space-around;
}

.text-center {
  text-align: center;
}

.chart-wrapper {
  width: 100%;
  height: 100%;
}

.tl {
  text-align: left;
}
.tr {
  text-align: right;
}

.text-bold {
  font-weight: bold;
}
.text-hidden {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}
.text-nowrap {
  white-space: nowrap;
}
.text-link {
  color: #1890ff;
  cursor: pointer;
  &:hover {
    color: red;
  }
}
.text-color-red {
  color: red;
}
.text-color-green {
  color: green;
}
.vertical-middle {
  vertical-align: middle !important;
}
.white {
  background: #fff;
}
.scrollCss::-webkit-scrollbar {
  width: 7.5px;
  height: 7.5px;
  background: transparent;
}
.scrollCss::-webkit-scrollbar-thumb {
  border-radius: 12px;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.3);
  background: rgba(144, 147, 153, 0.5);
}
.scrollCss::-webkit-scrollbar-thumb:hover {
  border-radius: 12px;
  box-shadow: inset 0 0 5px rgba(255, 255, 255, 0.75);
  background: rgba(144, 147, 153, 0.7);
}
.scrollCss::-webkit-scrollbar-corner {
  background: transparent;
}
.svgClass {
  width: 1em;
  height: 1em;
  vertical-align: -0.15em;
  fill: currentColor;
  overflow: hidden;
  outline: 0;
}
.ant-layout-content {
  padding: 10px 10px 5px !important;
}
.ant-input {
  height: 22px !important;
}

.ant-table-thead > tr > th, .ant-table-tbody > tr > td, .ant-table tfoot > tr > th, .ant-table tfoot > tr > td {
  padding: 5px;
}
// 全屏
.modal-full {
  .full-modal-title {
   text-align: center;
   margin: 0 50px 20px;
  }
  .ant-modal {
    width: 100% !important;
    max-width: 100% !important;
    position: relative !important;
    top: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 100vh !important;
    .ant-modal-content {
      height: 100%;
    }
    .ant-modal-footer {
      display: none;
    }
    .ant-modal-header {
      display: none;
    }
  }
  .icon {
    font-size: 22px;
  }
}
// 对话框头部居中
.ant-modal-header {
  text-align: center;
}
// 下载模板文字
.download-template {
  color: #1890ff;
  cursor: pointer;
  line-height: 40px;
}
// 对话框居中显示
// .ant-modal {
//   position: relative !important;
//   top: 22% !important;
// }
.loading-mask {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
}


.app-content {
  background-color: #fff;
  width: 100%;
  height: 100%;
  padding: 10px;
  overflow-x: hidden;
  overflow-y: hidden;
  overflow: auto;


  .operate-btn {
    padding-bottom: 20px;
    &>div:nth-child(1){
      float: left;
    }
    &>div:nth-child(2){
      float: right;
    }
    .ant-btn {
      margin-left: 20px;
    }
  }

  .ant-divider {
    margin: 20px 0 5px;
  }

}
.overflow {
  overflow-x: hidden;
  overflow-y: hidden;
  overflow: hidden;
}
.app-content-info {
  background-color: #fff;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: auto;
  overflow-x: hidden;
  .info-loading {
    position: absolute;
    left: 50%;
    top: 50%;
  }
}


.modal-paper {
  .ant-modal-body {
    height: 500px !important;
  }
}

.modal-footer .ant-modal-body{
  padding-bottom: 80px;
}
// 修改滚动条
//滚动条的宽度
::-webkit-scrollbar {
  width:5px;
  height:5px;
}
 
//滚动条凹槽的颜色，还可以设置边框属性
::-webkit-scrollbar-track-piece {
  // background-color:#f8f8f8;  // 这个不要更加好看，如果要了这个样式，没有产生滚动条的时候都会有一个框在右侧
  border-radius: 2px;
}
 
//滚动条的设置
::-webkit-scrollbar-thumb {
  background-color:#dddddd;
  background-clip:padding-box;
  min-height:28px;
  border-radius: 10px;
}
 
::-webkit-scrollbar-thumb:hover {
  background-color:#bbb;
}

// 详情头部
.head-info {
  height: 80px;
  background-color: rgb(219, 219, 219);
  line-height: 80px;
  position: relative;
  padding: 0px 20px;
  .ant-page-header {
    background-color: rgb(219, 219, 219);
    height: 80px;
  }
  .head-status {
    position: absolute;
    right: 200px;
    top: 0;
  }
}
.info-main {
  padding: 10px;
 }
.get-more .ant-modal-body {
  padding: 5px 10px !important;
  min-height: 500px;
}
.edit-alert {
  text-align: center;
  margin:  0 0 10px 0;
}


.row-dragging {
  background: #fafafa;
  border: 1px solid #ccc;
}

.row-dragging td {
  padding: 16px;
}

.row-dragging .drag-visible {
  visibility: visible;
}
.ant-back-top {
  background-color: pink;
}
.repace-photo {
   
   overflow: auto;
   display: flex;

   .ant-checkbox,.ant-checkbox-inner {
     position: absolute;
     right: 0;
     top: 0;
     width: 25px;
     height: 25px;
   }
  .repace-photo-item {
    width: 200px;
    margin-left: 10px;
    position: relative;
  }
  .photo-tag {
    position: absolute;
    left: 0;
    top: 0;
  }
}



.after-questions {
  height: calc(100vh - 210px);
  overflow: auto;
  overflow-x: hidden;
  .after-btn {
    .ant-btn {
      margin-left: 20px;
    }
  }

  .subject {
    .subject-item {
      margin-top: 10px;
      position: relative;
      background-color: rgb(240, 240, 240);
      .operate-icon {
        position: absolute;
        right: 10px;
        top: 8px;
        .icon {
          margin-left: 10px;
          font-size: 22px;
        }
      }
    }
  }
}

.ant-layout-sider {
  overflow: auto;
}
.ant-input-group .ant-input {
  height: 32px !important;
}


// 预览题目弹框
.modal-preview-subject {

  .ant-modal-body {
    max-height: 700px;
    padding: 10px;
    position: relative;
    overflow: auto;
    overflow-x: hidden;
  }

}
// 预览题目弹框
.modal-preview-subject-word {


  .ant-ribbon.ant-ribbon-placement-start{
    left: 0 !important;
  }

  .ant-modal-body {
    height: 550px;
    padding: 10px;
    position: relative;
    overflow: auto;
  }

  .ant-carousel {
    background-color: rgb(235, 235, 235);
  }

  .word {
    position: relative;
    height: 450px;
    
  }
  
  .icon-left {
    position: absolute;
    left: 20px;
    top: 275px;
    cursor: pointer;
    font-size: 30px;
    z-index: 99999;
    &:hover {
      color: #1890ff;
    }
  }
  .icon-right {
    position: absolute;
    right: 20px;
    top: 275px;
    z-index: 99999;
    cursor: pointer;
    font-size: 30px;
    &:hover {
      color: #1890ff;
    }
  }


  .main {
    margin: 0 auto;
    line-height: 40px;
    font-size: 18px;
    position: absolute;
    left: 50%;
    text-align: center;
    transform: translateX(-50%);


  }
  .pictures {
    display: flex;
    position: absolute;
    justify-content: space-evenly;
    bottom: 50px;
    width: 100%;
  }
}


.subject-component {
  .title {
    text-align: center;
  } 
  .look-more {
    color: #1890ff;
    margin-left: 10px;
    cursor: pointer;
    &:hover {
      color: red;
    }
  }
  .ant-divider{
    padding: 0px;
    margin: 5px;
  }
  .option-text-song {
    white-space: nowrap;
    margin: 40px 0 0 15px;
    height: 40px;
    font-size: 18px;
    line-height: 30px;
    padding: 5px 10px;
    background-color: rgb(148, 196, 255);
    border-radius: 20px;
    .text {
      margin-left: 5px;
    }
  }
  .option-head {
    display: flex;
    margin-left: 45%;
    // transform: translateX(-50%);
  }
  // .no-picture-text {
  //   width: 60px;
  // }
  .option-main {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-top: 20px;
    .option-text-song {
      margin: 20px 0px;
    }
  }
  .subject-ansewer {
    text-align: center;
    span {
      padding: 5px 15px;
      font-size: 18px;
      color: red;
      height: 40px;
      line-height: 40px;
      border-radius: 20px;
      border: 1px dashed #ccc;
    }
  }
  .more-subject {
    &>div {
      display: flex;
      justify-content: space-around;
      overflow: hidden;
    }
    .anticon {
      margin: 5px 0 0 5px;
    }
  }
}

.table-icon-1 {
  position: absolute;
  right: 40px;
  margin-top: 5px;
  font-size: 20px;
  z-index: 99999;
  cursor: pointer;
  color: #1890ff;
  &:hover {
    color: red;
  }
}

.plan-icon {
  font-size: 18px;
  cursor: pointer;
  color: #1890ff;
  &:hover {
    color: red;
  }
}

.info-status {
  position: absolute;
  left: 50%;
  top: 0;
  line-height: 80px;
  .ant-tag {
    width: 150px;
    text-align: center;
    height: 30px;
    font-size: 20px;
    line-height: 30px;
  }
}
// 音频字幕预览
.srt-show {
  text-align: center;
  font-size: 20px;
  overflow: auto;
  height: calc(100vh - 230px);
  overflow-x: hidden;
}

li {
  list-style: none;
}

.text-srt-active {
  transform: scale(1.5);
  color: red;
}

.preview-video {
  position: relative;
}
.preview-video video {
  position: absolute;
  left: 50%;
  top: 0;
  height: 450px;
  transform: translateX(-50%);
}
.video-show {
  width: 100%;
  font-size: 24px;
  overflow: auto;
  height: calc(100vh - 570px);
  overflow-x: hidden;
  position: absolute;
  top: 460px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}

.examination-form {
  display: flex;
  &>div {
     display: flex;
    margin-left: 10px;
    white-space: nowrap;
    .ant-input {
      margin-left: 10px;
    }
  }
}
// .loading-mask{position:fixed;left:0;top:0;height:100%;width:100%;background:#fff;user-select:none;z-index:9999;overflow:hidden}
// .loading-wrapper{position:absolute;top:50%;left:50%;transform:translate(-50%,-100%)}.loading-dot{animation:antRotate 1.2s infinite linear;transform:rotate(45deg);position:relative;display:inline-block;font-size:64px;width:64px;height:64px;box-sizing:border-box}
// .loading-dot i{width:22px;height:22px;position:absolute;display:block;background-color:#1890ff;border-radius:100%;transform:scale(.75);transform-origin:50% 50%;opacity:.3;animation:antSpinMove 1s infinite linear alternate}.loading-dot i:nth-child(1){top:0;left:0}
// .loading-dot i:nth-child(2){top:0;right:0;-webkit-animation-delay:.4s;animation-delay:.4s}
// .loading-dot i:nth-child(3){right:0;bottom:0;-webkit-animation-delay:.8s;animation-delay:.8s}
// .loading-dot i:nth-child(4){bottom:0;left:0;-webkit-animation-delay:1.2s;animation-delay:1.2s}
// @keyframes antRotate{to{-webkit-transform:rotate(405deg);transform:rotate(405deg)}}
// @-webkit-keyframes antRotate{to{-webkit-transform:rotate(405deg);transform:rotate(405deg)}}
// @keyframes antSpinMove{to{opacity:1}}
// @-webkit-keyframes antSpinMove{to{opacity:1}}

.subject-add {
  .add-edit-subject {
    .ant-input {
      height: 40px !important;
    }
    .subject {
      display: flex;
      justify-content: space-around;
        &>div {
          display: flex;
          white-space: nowrap;
        }
    }
  
    .option {
      display: flex;
      justify-content: space-evenly;
      flex-wrap: wrap;
      &>div {
        margin-top: 20px;
        display: flex;
        &>div {
          margin-left: 10px;
        }
      }
    }

    span {
      margin: 0 10px;
    }

    .answer {
      margin-top: 20px;
      white-space: nowrap;
      display: flex;
      span {
        margin: 0 15px;
        line-height: 40px;
      }
    }
    .icon {
      font-size: 22px;
    }
  }
  .icon {
    font-size: 22px;
  }
  &.subject-add .add-edit-subject span {
    margin: 0 3px;
  }
}


.modal-game {
  .ant-spin-container {
    display: flex;

    .cool-head .ant-btn {
      margin-left: 20px;
    }

    .cool-data {
      flex: 1;
    }
  }
}


.modal-full {
  overflow-y: hidden;
  &.book-background .ant-modal-content{
    background-color: rgb(243, 243, 243);
  }
  .flipbook {
   position: absolute;
   top: 100px;
   left: 320px;
   img {
     width: 500px;
   }
  }

  .book-spin {
    margin: 100px 0 0 500px;
    width: 200px;
  }

  .onebest {
    position: absolute;
    font-size: 24px;
    text-align: center;
    margin-top: 100px;
    left: 320px;
  }

  .word {
    position: absolute;
    white-space: nowrap;
    color: #1890ff;
    border-radius: 5px;
    font-weight: 900;
  }


  .book-info {
    position: absolute;
    left: 10px;
    top: 100px;
    text-align: center;
  }
}



.modal-full {
  .edit-json {
    display: flex;
     &>div:nth-child(1){
       position: relative;
       width: 600px;
      img {
        width: 600px;
      }
    }

    .icon1 {
      font-size: 40px;
      position: absolute;
      left: 10px;
      top: 50%;
      margin-top: -20px;
      color: #1890ff;
      cursor: pointer;
      &:hover {
        color: red;
      }
    }
    .icon2 {
      font-size: 40px;
      position: absolute;
      right: 10px;
      top: 50%;
      margin-top: -20px;
      color: #1890ff;
      cursor: pointer;
      &:hover {
        color: red;
      }
    }
  }

  .json-text {
    flex: 1;
    padding: 0 10px;
  }

  .json-btn {
    position: absolute;
    right: 20px;
    z-index: 9999;
  }
}

.book-info {
  .book-info-title {
    font-weight: 700;
   font-size: 30px;
  }
  .book-info-text{
    font-size: 18px;
    display: flex;
    line-height: 30px;
    justify-content: space-around;
    font-weight: 500;
    &>div:nth-child(1){
      color: #1890ff;
    }
    &>div:nth-child(2){
      color: #0ce835;
    }
    &>div:nth-child(3){
      color: #e90fba;
    }
  }
}

.components-table-demo-nested .ant-table-thead > tr > th, .ant-table-tbody > tr > td, .ant-table tfoot > tr > th, .ant-table tfoot > tr > td {
  padding: 10px;
}
.components-table-demo-nested .word-json {
  position: absolute;
}
.components-table-demo-nested .ant-table-pagination.ant-pagination {
  display: none;
}
.components-table-demo-nested .ant-table-thead > tr > th, .ant-table-tbody > tr > td, .ant-table tfoot > tr > th, .ant-table tfoot > tr > td{
  padding: 16px
}

.content-tag {
  cursor: pointer;
}

.head-icon {
  font-size: 24px;
  color: #678afd;
  line-height: 50px;
  &:hover {
    color:red
  }
}

.book-rule,.audio-rule,.video-rule {
  &>div {
    display: flex;
    .ant-card {
      margin-left: 20px;
    }
  }
}


.table-icon {
  font-size: 24px;
  color: #678afd;
  cursor: pointer;
  &:hover {
    color:red
  }
}